export default  function (obj){
	const Baseurl = 'http://localhost:3000/api'
	var header = {"Authorization":"Bearer "+uni.getStorageSync('token')||''}
	return new Promise((resolve,reject)=>{
		uni.request({
			url:Baseurl+obj.url,
			method:obj?.method||'GET',
			data:obj?.data||{},
			header:header,
			success(res) {
				resolve(res)
			},
			fail(err) {
				reject(err)
			}
		})
	})
}